package com.lzk.service;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.lzk.model.ZcUser;

public interface UserService {
	/**
	 * 判断用户名是否重复
	 * @param userName
	 * @return true=重复 false 不重复
	 */
	boolean checkUserName(String userName);
	
	boolean insertUser(ZcUser user);

	List<ZcUser> getUserListByConection(int page, int limit, String userName, String userStatus);

	long getUserContByConection(String userName, String userStatus);

	boolean deleteUserById(int id);

	ZcUser getUserById(int id);

	boolean editUser(ZcUser user, boolean isChange);
	
	boolean login(String userName, String pwd, HttpServletResponse resp);

}
